<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>流程页</title> 
    <link href="${ctx}/static/css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="${ctx}/static/css/uimaker/easyui.css">
    <link href="${ctx}/static/css/process.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/uimaker/icon.css">
	<style type="text/css">
		.error {
			color:red;
		}
	</style>
</head> 
<body>
	<form method="post" action="${ctx}/order/excelsave" class="form0" enctype="multipart/form-data">
      <div class="basic-info">
      	<table class="kv-table">
			<tbody>
				<tr>
					<td class="kv-label" colspan="2">上传的Excel文件的模板，请按模板编辑Excel文件</td>
					<td class="kv-content" colspan="2">
						<a href="${ctx}/upload/excel/excelinputmodel.xlsx">下载模板</a>
					</td>
				</tr>
				<tr>
					<td class="kv-label">请上传本地Excel</td>
					<td class="kv-content">
						<input type="file" name="excelFile" style="width:166px;height:35px;line-height:35px;">
					</td>
					<td class="kv-label">商家名称</td>
					<td class="kv-content">
						<select class="easyui-combobox" name="sellerId" style="height:35px;width:166px;">
			            	<c:forEach var="item" items="${sellers}">
			            		<option value="${item.id}" ${item.id eq order.sellerId ? "selected":""}>${item.name}</option>
			            	</c:forEach>
			            </select>
					</td>
				</tr>
				<tr>
					<td class="kv-label"></td>
					<td class="kv-content" colspan="3">
						<div class="opt-buttons">
							<a href="javascript:void(0);" class="easyui-linkbutton submit-btn" data-options="selected:true">确定</a>
							<a href="javascript:history.back();" class="easyui-linkbutton" >返回</a>
							<span class="error"></span>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
      </div>
   </form>
</body>
<script type="text/javascript" src="${ctx}/static/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function() {
		$('.submit-btn').on('click', function() {
			$('.form0').submit();
		})
	});
</script>
</html>


